package com.sgj.builder.improve;

/**
 * 建造者模式
 * @Author: Guoji Shen
 * @Date: 2021/11/15 9:42
 */
public abstract class HouseBuilder {

    protected House house = new House();

    // 将建造的流程写好，抽象的方法
    public abstract void buildBasic();
    public abstract void buildWalls();
    public abstract void roofed();

    // 建好房子后，将产品（房子）返回
    public House buildHouse() {
        return house;
    }
}